<include file="../header" />
<body class="J_scroll_fixed">
    <div class="wrap J_check_wrap">
        <ul class="nav nav-tabs">
            <li class="active"><a href="{:U('region/index')}">地区信息</a></li>
            <li><a href="{:U('region/add')}">添加地区</a></li>
        </ul>
        <table class="table table-hover table-bordered">
            <thead>
                <tr>
                    <th>编号</th>
                    <th>地区名称</th>
                    <th>电压范围</th>
                    <th>电流范围</th>
                    <th>温度范围</th>
                    <th>湿度范围</th>
                    <th>创建时间</th>
                    <th width="120">管理操作</th>
                </tr>
            </thead>
            <tbody>

            <foreach name="list" item="vo">
                <tr>
                    <td>{$vo.region_id}</td>
                    <td>{$vo.region_name}</td>
                    <td>{$vo.voltage_lower_limit}--{$vo.voltage_upper_limit}</td>
                    <td>{$vo.current_lower_limit}--{$vo.current_upper_limit}</td>
                    <td>{$vo.temperature_lower_limit}--{$vo.temperature_upper_limit}</td>
                    <td>{$vo.humidity_lower_limit}--{$vo.humidity_upper_limit}</td>
                    <td>{$vo.create_time}</td>
                    <td>
                        <a href='{:U("region/edit",array("id"=>$vo["region_id"]))}'>修改</a>
                    </td>
                </tr>
            </foreach>
            </tbody>
        </table>
        <div class="pagination">{$page}</div>
    </div>
    <script src="__ROOT__/statics/js/common.js"></script>
</body>
</html>